#!/bin/bash
ls -n /root/.ansible/roles/tdjy.scripts/*|awk '{print $9}' 
read -p "输入脚本文件名:" script_name
/usr/bin/ansible agent -m script -a "/root/.ansible/roles/tdjy.scripts/$script_name"
